import cv2
image_Color=cv2.imread("car.png")
print('')
print('shape=',image_Color.shape)
print('shape=',image_Color.size)
print('shape=',image_Color.dtype)
image_Gray=cv2.imread('car.png',cv2.IMREAD_GRAYSCALE)
print('显示灰度属性')
print('size=',image_Gray.size)
print('shape=',image_Gray.shape)
print('dtype=',image_Gray.dtype)